package cn.mianxZY5;

public class Aodi extends Car {
    private double price;
    private String model;

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }
    public Aodi(String name,double price,String model){
        super(name);
        this.price=price;
        this.model=model;
    }
    public void AodiShow(){
        System.out.println("品牌："+super.getName());
        System.out.println("价格："+this.getPrice());
        System.out.println("型号："+this.getModel());
    }
    public void  variableSpeed(){
        System.out.println("汽车可以变速....");
    }
}
